7.8
HIGH CVSS 4.0
CVE-2026-11940
tarfile extraction filter bypass allows escaping the destination directory
Description

tarfile.extractall() with the 'data' or 'tar' filter could be bypassed by a crafted archive where a hardlink references a symlink stored at a deeper name than the hardlink itself.  The extraction fallback validated the symlink at it's archived location but recreated it at the hardlink's shallower path, letting a relative target the filter judged contained escape the destination directory.  This allowed a malicious tar archive to create a symlink pointing outside the destination, enabling out-of-destination file reads or writes. This was an incomplete fix of CVE-2025-4330.

INFO

Published Date :

June 23, 2026, 4:04 p.m.

Last Modified :

June 23, 2026, 4:05 p.m.

Remotely Exploit :

Yes !

Source :

PSF
Affected Products

The following products are affected by CVE-2026-11940 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Python_software_foundation cpython
1 Python cpython
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 4.0 HIGH 28c92f92-d60d-412d-b760-e73465c3df22
Solution
Update tarfile to the latest version to fix path traversal via hardlinks and symlinks.
  • Update the tarfile library to the latest version.
  • Ensure archive extraction filters are properly configured.
  • Validate archive contents before extraction.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-11940 vulnerability anywhere in the article.

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.